package io.renren.modules.maintenance.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.R;
import io.renren.modules.maintenance.entity.MService;
import io.renren.modules.maintenance.entity.MServiceRecord;
import io.renren.modules.maintenance.mapper.MServiceRecordMapper;
import io.renren.modules.maintenance.service.IMServiceRecordService;
import io.renren.modules.maintenance.service.IMServiceService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.plugin.com.Utils;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author iweb
 * @since 2020-08-07
 */
@Service
public class MServiceRecordServiceImpl extends ServiceImpl<MServiceRecordMapper, MServiceRecord> implements IMServiceRecordService {
    @Autowired
    MServiceRecordMapper mServiceRecordMapper;
    @Autowired
    IMServiceService imServiceService;


    @Override
    public List<MServiceRecord> listServiceRecords(String kindName, int worksheetId) {
        return (ArrayList)mServiceRecordMapper.queryBykind(kindName,worksheetId);

    }



    @Override
    public int inputServiceRecord(MServiceRecord mServiceRecord) {

            return mServiceRecordMapper.updateById(mServiceRecord);


    }


}
